/**
 * 
 */
package com.planner.core.service.rest.core;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.india.StopNode;

/**
 * @author gautasa
 *
 */
@XmlRootElement(name="stop")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class RestStopNode {

	private StopNode stop;
	public RestStopNode(){
		super();
	}
	public RestStopNode(StopNode stop) {
		super();
		this.stop = stop;
	}
	
	@XmlElement
	public int getId() {
		return this.stop.getId();
	}
	
	@XmlElement
	public String getName() {
		return this.stop.getName();
	}
	@XmlElement
	public String getCode() {
		return this.stop.getCode();
	}
	@XmlElement
	public RestLocation getLocation(){
		return new RestLocation(stop.getLocation());
	}
}
